﻿namespace UpperComputer.WPF.Entry.Models
{
    public class NameValueSelectedModel<T> : NameValueModel<T>
    {
        public bool IsSelected { get; set; }

        public NameValueSelectedModel() { }

        public NameValueSelectedModel(string name, T value) : base(name, value) { }

        public NameValueSelectedModel(string name, T value, bool isSelected) : base(name, value)
        {
            IsSelected = isSelected;
        }
    }

    public class NameValueModel<T>
    {
        public string Name { get; set; }

        public T Value { get; set; }

        public NameValueModel() { }

        public NameValueModel(string name, T value)
        {
            Name = name;
            Value = value;
        }
    }
}
